using Blazored.LocalStorage;
using daonaite.MasaUi;
using daonaite.MasaUi.Util;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;

var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");
builder.RootComponents.Add<HeadOutlet>("head::after");
builder.Services.AddMasaBlazor();

builder.Services.AddBlazoredLocalStorage();

builder.Services.addapi();
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("http://192.168.208.180:5000/") });
builder.Services.AddTransient<HttpHelp>();


await builder.Build().RunAsync();
